<admintpl file="header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">预约列表</a></li>
    </ul>
    <form class="well form-search" method="post" action="{:U('lists')}">
        手机号：
        <input type="text" name="phone" style="width: 120px;" value="{$formget.phone}" placeholder="">

        <input type="submit" style="margin-left: 5px;" class="btn btn-primary" value="搜索"/>
    </form>



    <table style="margin-top: 10px;word-break:break-all;" class="table table-hover table-bordered table-list"
           id="menus-table">
        <thead>
        <tr>
            <th>序号</th>
            <th>用户openid</th>
            <th>用户手机号</th>
            <th>baby</th>
            <th>baby生日</th>
            <th>预约日期</th>
            <th>预约时间段</th>
            <th>预约时间</th>
            <!--<th>操作</th>-->
        </tr>
        </thead>
        <tbody>
        <volist name="list" id="vo" key="k">
            <tr>
                <td>{$k}</td>
                <td>{$vo.openid} </td>
                <td>{$vo.phone} </td>
                <td> {$vo.child_name}</td>
                <td> {$vo.birthday}</td>
                <td>{$vo.times}</td>
                <td>
                    {$vo.period}
                </td>
                <td>
                    {$vo.create_time}
                </td>

                <!--<td><a href="{:U('edit', ['id' => $vo['id']])}">编辑</a> | <a href="{:U('record', ['phone' => $vo['phone']])}">打卡记录</a>
                    &lt;!&ndash;| <a class="js-ajax-delete" href="{:U('del', ['id' => $vo['id']])}">删除</a>&ndash;&gt;
                    <if condition="$vo['type'] eq 'times'">
                        | <a class="js-ajax-dialog-btn" href="{:U('signCard', ['id' => $vo['id'], 'tag' => 'swim'])}">游泳打卡</a>
                        | <a class="js-ajax-dialog-btn" href="{:U('signCard', ['id' => $vo['id'], 'tag' => 'shower'])}">洗澡打卡</a>
                    </if>
                </td>-->
            </tr>
        </volist>
        </tbody>
    </table>
    <div class="pagination">{$Page}</div>
</div>

<script src="__PUBLIC__/js/common.js"></script>
<script>
    $(".hidden").hide();
    $('.add_ext').click(function () {
        var name = $(this).attr("name");
        var id = $(this).attr("tid");
        var sort = $(this).attr("sort");

        $(".id").val(id);
        // $("#id").val(id);
        $("#name").val(name);
        $("#sort").val (sort);
    });

</script>
</body>
</html>